/* eslint-disable */
import Vue from 'vue'
import Router from 'vue-router'
import routes from './routers'
// import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import http from '@/libs/httpRequest'
Vue.use(Router)
const router = new Router({
    routes,
})
router.beforeEach((to, from, next) => {
    http.isError = false
    document.title = to.meta.title
    next()
});
router.afterEach(to => {
    /** 关闭加载进度条 */
    // NProgress.done();
    /* 窗口滚动设置初始化*/
    window.scrollTo(0, 0)
})
export default router;